﻿using ProjectClass.ShopingCart;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ProjectClass.View.FrontEnd
{
    public partial class CheckoutStepOne : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                LoadCart();
            }
        }
        private void LoadCart()
        {
            if (Session["ASPNETShoppingCart"] != null)
            {

                rpCart.DataSource = ShoppingCart.Instance.Items;
                rpCart.DataBind();
            }
        }
    }
}